<?php
class LcznEntidadVO {

	private $vars = array();

	public function __set($index, $value) {
		$this->vars[$index] = $value;
	}
	
	public function __get($index) {
		return $this->vars[$index];
	}

	public function __call($metodo, $args) {
		$atributo = substr($metodo,3);
		
		switch(substr($metodo,0,3)) {
			case "set":
				$this->$atributo = $args[0];
				break;
			case "get":
				return $this->$atributo;
				break;
		}
	}

// 	public function getAtributos() {
// 		return array_keys($this->vars);
// 	}
}
?>